package com.gzp.service.impl;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.dubbo.config.annotation.Service;
import com.gzp.pojo.UserAddress;
import com.gzp.service.UserService;

/**
 * 使用注解com.alibaba.dubbo.config.annotation.Service
 * 
 * @author gzp
 *
 */
@Service
public class UserServiceAnnotationImpl implements UserService {

	public static List<UserAddress> addressList = new ArrayList<UserAddress>();

	static {
		addressList.add(new UserAddress("1", "广东省深圳市罗湖区桂园路地王大厦5层505", "1"));
		addressList.add(new UserAddress("2", "广东省深圳市龙华区坂田街道风门坳东八巷1栋601", "2"));
	}

	public List<UserAddress> findAllAddress(String userId) {
		System.out.println("20890");
		return addressList;
	}

}
